eh_seg

USAGE: eh_seg infile [-s] [-a] [-l] [-n n] [-i f] [-f f] [-w] [-L]

eh_seg extracts histogram data from infile (SEG), generated by
fitpolyg, containing line segment data

ARGUMENTS:
  infile: input filename (SEG)

OPTIONS:
    -s: show input data

        construct histogram for:
    -a: turn angles between consecutive segments
    -l: histogram of segment lengths
  -n n: set number of bins to n (default: 10)
  -i f: set initial value to (float)f (default: MIN)
  -f f: set final value to (float)f (default: MAX)
    -w: write output file of type .hdt (hist data)
 
 

Example:

eh_seg four.seg -a -w four.hdt

four.seg:

22
   0 250  86 241 104   -2.00   0
   1 241 104 230 116   -1.09   0
   2 230 116 229 128  -12.00   0
   3 229 128 220 146   -2.00   0
   4 220 146 220 155  512.00   0
   5 220 155 215 167   -2.40   0
   6 215 167 215 175  512.00   0
   7 215 175 230 175    0.00   1
   8 230 175 239 180    0.56   1
   9 239 180 250 180    0.00   1
  10 215 175 195 195   -1.00   2
  11 195 195 189 195    0.00   3
  12 189 195 145 172    0.52   3
  13 145 172 145 166  512.00   4
  14 145 166 150 160   -1.20   4
  15 150 160 159 156   -0.44   4
  16 159 156 170 145   -1.00   4
  17 145 172 121 185   -0.54   5
  18 195 195 194 216  -21.00   6
  19 194 216 185 225   -1.00   6
  20 185 225 185 234  512.00   6
  21 185 234 180 245   -2.20   6

output:

...option a: hist of turn angles betw consec segm

...option w: write output to file
read sgl data from file four.seg
...number of segments in file four.seg: 22

...evaluating histogram of turn angles...

...sorting and constructing histogram

histogram:
......mean: 3.073956
...std_dev: 82.378144
...min: -157.380142, bin_width: 34.973366, max: 157.380142
   3.00   0.00   0.00   3.00   1.00   5.00   0.00   0.00   3.00   0.00

four.hdt:

10
1.000000
1.000000
1.000000
0.000000 3.000000
1.000000 0.000000
2.000000 0.000000
3.000000 3.000000
4.000000 1.000000
5.000000 5.000000
6.000000 0.000000
7.000000 0.000000
8.000000 3.000000
9.000000 0.000000

Copyright (C) 1999 MLMSoftware Group, LLC.